//
//  GDMapTool.h
//  KEREN
//
//  Created by MW on 2023/3/13.
//

#import <Foundation/Foundation.h>
typedef void(^GDMapBlock)(void);

NS_ASSUME_NONNULL_BEGIN

@interface GDMapTool : NSObject<AMapLocationManagerDelegate>
@property (nonatomic, strong) AMapLocationManager *locationManager;
@property (nonatomic, copy) NSString *weather;//天气现象（汉字描述）
@property (nonatomic, copy) NSString *temperature;//实时气温，单位：摄氏度
@property (nonatomic, copy) NSString *windpower;//风力
@property (nonatomic, copy) NSString *humidity;//空气湿度
@property (nonatomic, strong) CLLocation *location;
@property (nonatomic, copy) NSString *adcode;
@property (nonatomic, copy) NSString *address;
+(instancetype)sharedInstance;
//是否在围栏中
+(BOOL)isContainsLocation:(CLLocationCoordinate2D )location withCenterLocation:(CLLocationCoordinate2D )centerLocation;
//CLLocationDegrees latitude;
//CLLocationDegrees longitude;

//GPS坐标转高德坐标
- (CLLocationCoordinate2D)AMapCoordinateConvertWithLatitude:(float)latitude andLongitude:(float)longitude;

-(void)getCurrentLocation:(GDMapBlock)map;
- (void)location:(NSString *)locationName;
//- (void)getLocation;
@end

NS_ASSUME_NONNULL_END
